<?php
defined('IN_IA') or exit('Access Denied');
class Lorn_2048ModuleProcessor extends WeModuleProcessor {
   public function respond() {
        global $_W, $_GPC;
		//多图文即传入一个二维的下面的数组即可       
        $content = $this->message['content'];        
        $game = pdo_fetch("SELECT * FROM ".tablename('lorn_2048_games')." WHERE title LIKE :title and uniacid = :uniacid", array(':title' => '%'.$content.'%',':uniacid'=>$_W['uniacid']));
       
        if($game){
            return $this->respNews(array(
                    'Title' => $game['title'],
                    'Description' => '',
                    'PicUrl' => tomedia($game['hf_pic']),
                    'Url' => $this->createMobileUrl('index', array('gid' => $game['id'])), //创建一个带openid信息的访问模块introduce方法的地址，这里也可以直接写http://we7.cc
            ));              
        }else{
            return $this->respText("活动未开启...");
        }
      
    }
}
